package cn.wawi.entity.sys;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* sys_privilege 实体类
* 2016-06-13 16:57:19 cn.wawi.entity.sys
*/ 
public class Privilege implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private Long id;
	private String iconCls;
	private String name;
	private String url;
	private String state="closed";
	@JsonProperty("_parentId")
	private Long parentId;
	private String permCode;
	private Long sort=999L;
	private String type;
	private String status="1";
	private String description;
	
	public Privilege(){
		
	}
	public Privilege(String name,String permCode,String des,Long parentId){
		this();
		this.name=name;
		this.type="O";
		this.description=des;
		this.permCode=permCode;
		this.parentId=parentId;
	}
	public void setId(Long id){
		this.id=id;
	}
	public Long getId(){
		return id;
	}
	public void setIconCls(String iconCls){
		this.iconCls=iconCls==null?null:iconCls.trim();
	}
	public String getIconCls(){
		return iconCls;
	}
	public void setName(String name){
		this.name=name==null?null:name.trim();
	}
	public String getName(){
		return name;
	}
	public void setUrl(String url){
		this.url=url==null?null:url.trim();
	}
	public String getUrl(){
		return url;
	}
	public void setParentId(Long parentId){
		this.parentId=parentId;
	}
	public Long getParentId(){
		return parentId;
	}
	public void setPermCode(String permCode){
		this.permCode=permCode==null?null:permCode.trim();
	}
	public String getPermCode(){
		return permCode;
	}
	public void setSort(Long sort){
		this.sort=sort;
	}
	public Long getSort(){
		return sort;
	}
	public void setType(String type){
		this.type=type==null?null:type.trim();
	}
	public String getType(){
		return type;
	}
	public void setStatus(String status){
		this.status=status==null?null:status.trim();
	}
	public String getStatus(){
		return status;
	}
	public void setDescription(String description){
		this.description=description==null?null:description.trim();
	}
	public String getDescription(){
		return description;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state=state==null?null:state.trim();
	}
	
}

